
<form name="editForm" role="form" novalidate ng-submit="">

	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true" ng-click="vm.clear()">&times;</button>
		<h4 class="modal-title" id="myGiftLabel"
			data-translate="milkbeeApp.gift.home.createOrEditLabel">Create
			or edit a Gift</h4>
	</div>
	<div class="modal-body">
		<jhi-alert-error></jhi-alert-error>
		<div class="container">
			<div class="row">
				<div ng-repeat="gift in vm.gifts track by gift.id"
					class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
					<div>
						<img width="100px" height="100px"
							src='/content/images/upload/gift/{{gift.picture}}'>
					</div>
					<div>
						{{gift.title}}<input type="checkbox"
							ng-click="vm.onGiftChange($event,gift.id)">
					</div>
					<div>
						<img width="30px" height="30px"
							src="/content/images/mana/gold.png" />:{{gift.gold}}
					</div>
					<div>
						<button class="btn btn-info btn-sm" ng-click="vm.sendgift(gift.id,vm.userId)">
							<span class="glyphicon glyphicon-gift"></span><span
								data-translate="entity.action.sendgift">sendgift</span>
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal"
			ng-click="vm.clear()">
			<span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span
				data-translate="entity.action.cancel">Cancel</span>
		</button>
		<button type="submit" ng-disabled="editForm.$invalid || vm.isSaving"
			class="btn btn-primary">
			<span class="glyphicon glyphicon-save"></span>&nbsp;<span
				data-translate="entity.action.save">Save</span>
		</button>
	</div>
</form>
